#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void Bub(int arr[10], int len)
{
	for (int i = 0; i < len; i++)
	{
		for (int j = 0; j < len-1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int temp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = temp;
			}
		}
	}
	for (int i = 0; i < len; i++)
	{
		printf("%d ",arr[i]);
	}
}
int main()
{
	int arr[10] = { 3,1,9,2,7,2,5,0,3,0 };
	int len = sizeof(arr) / sizeof(arr[0]);
	Bub(arr,len);
	return 0;
}